package cn.icare.cms.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "wxconfig")
public class WxInfoConfig {

    /**
     * 小程序 appId
     */
    private String appid;
    /**
     * 小程序 appSecret
     */
    private String secret;

    /**
     * 微信服务器基本地址
     */
    private String wxapi;

    /**
     * 订单支付接口
     */
    private String orderpayapi;

    /**
     * 订单支付回调接口
     */
    private String orderpaycallapi;

    /**
     * 商户号
     */
    private String mch_id;
    /**
     * 商户支付密钥
     */
    private String mch_key;



    /**
     * 订单退款申请接口
     */
    private String refundapi;
    /**
     * 订单退款申请回调接口
     */
    private String refundcallapi;

    private String cert_path;


    public String getAppid() {
        return appid;
    }

    public String getSecret() {
        return secret;
    }

    public String getWxapi() {
        return wxapi;
    }

    public String getOrderpayapi() {
        return orderpayapi;
    }

    public String getOrderpaycallapi() {
        return orderpaycallapi;
    }

    public String getMch_id() {
        return mch_id;
    }

    public String getMch_key() {
        return mch_key;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public void setWxapi(String wxapi) {
        this.wxapi = wxapi;
    }

    public void setOrderpayapi(String orderpayapi) {
        this.orderpayapi = orderpayapi;
    }

    public void setOrderpaycallapi(String orderpaycallapi) {
        this.orderpaycallapi = orderpaycallapi;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public void setMch_key(String mch_key) {
        this.mch_key = mch_key;
    }

    public String getRefundapi() {
        return refundapi;
    }

    public void setRefundapi(String refundapi) {
        this.refundapi = refundapi;
    }

    /**
     * 订单退款回调Api地址
     * @return
     */
    public String getRefundcallapi() {
        return refundcallapi;
    }

    public void setRefundcallapi(String refundcallapi) {
        this.refundcallapi = refundcallapi;
    }

    public String getCert_path() {
        return cert_path;
    }

    public void setCert_path(String cert_path) {
        this.cert_path = cert_path;
    }
}
